package com.zhuoyue.system.mapper;

import com.zhuoyue.common.annotation.DataSource;
import com.zhuoyue.system.domain.po.SelectTimePo;

import static com.zhuoyue.common.enums.DataSourceType.SLAVE1;
import static com.zhuoyue.common.enums.DataSourceType.SLAVE2;

/**
 * @author zhanghui
 * 用于查询首页消息量
 */
public interface SysMessageMapper {
    @DataSource(SLAVE1)
    Integer getMeteringLogCount(SelectTimePo selectTimePo);

    @DataSource(SLAVE1)
    Integer getSecurityLogCount(SelectTimePo selectTimePo);

    @DataSource(SLAVE1)
    Integer getSensirionLogCount(SelectTimePo selectTimePo);

    @DataSource(SLAVE2)
    Integer getTblMessageCount(SelectTimePo selectTimePo);
}
